package com.liyujie.networkrequest.remotedata;

import androidx.annotation.NonNull;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;

import com.liyujie.networkrequest.remotedata.systemapi.SystemApiService;

import javax.inject.Inject;


public class ViewModelFactory implements ViewModelProvider.Factory {

    private SystemApiService mSystemApiService;

    @Inject
    public ViewModelFactory(SystemApiService mSystemApiService) {
        this.mSystemApiService = mSystemApiService;
    }


    @NonNull
    @Override
    public <T extends ViewModel> T create(@NonNull Class<T> modelClass) {

        throw new IllegalArgumentException("未知类名");
    }
}